package com.platform.web.model;


import com.platform.common.base.BaseModel;

import java.util.Date;
import java.util.List;

/**
 * 系统权限
 * 
 * @author LiangMingHui
 *
 */
public class Permission extends BaseModel {

	private static final long serialVersionUID = -3907936449824350563L;

	/**
	 * 主键
	 */
	private String id;

	/**
	 * 权限代码
	 */
	private String permissionCode;

	/**
	 * 权限名称
	 */
	private String permissionName;

	/**
	 * 状态
	 */
	private Integer status;

	/**
	 * 创建人ID
	 */
	private String createId;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 父Id
	 */
	private String pid;

	/**
	 * 所属模块（即上级的权限代码）
	 */
	private String modeulCode;



	private List<Permission> childrens;

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPermissionCode() {
		return permissionCode;
	}

	public void setPermissionCode(String permissionCode) {
		this.permissionCode = permissionCode;
	}

	public String getPermissionName() {
		return permissionName;
	}

	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public String getModeulCode() {
		return modeulCode;
	}

	public void setModeulCode(String modeulCode) {
		this.modeulCode = modeulCode;
	}

	public List<Permission> getChildrens() {
		return childrens;
	}

	public void setChildrens(List<Permission> childrens) {
		this.childrens = childrens;
	}
}
